﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 订单发货表
	/// </summary>
	public class DbOrderDeliver
	{ 
		#region DbOrderDeliver
		/// <summary>
		/// 
		/// </summary>
		public DbOrderDeliver()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbOrderDeliver(Int32 dId)
		{
			this.dId = dId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbOrderDeliver(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["dId"]),out dId);
			this.dOrderSN = Convert.ToString(dr["dOrderSN"]);
			this.dName = Convert.ToString(dr["dName"]);
			this.dSN = Convert.ToString(dr["dSN"]);
			if(dr["dSendDate"] != DBNull.Value)
				this.dSendDate = Convert.ToDateTime(dr["dSendDate"]);
			this.dStatus = Convert.ToInt16(dr["dStatus"]);
			
		}
		#endregion
		
		
		#region DId
		private Int32 dId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 DId
		{
			get{ return dId; }
			set{ dId= value; }
		}
		#endregion
		
		#region DOrderSN
		private System.String dOrderSN;
		/// <summary>	 
		/// 订单号
		/// </summary>
		public System.String DOrderSN
		{
			get{ return dOrderSN; }
			set{ dOrderSN= value; }
		}
		#endregion
		
		#region DName
		private System.String dName;
		/// <summary>	 
		/// 物流名
		/// </summary>
		public System.String DName
		{
			get{ return dName; }
			set{ dName= value; }
		}
		#endregion
		
		#region DSN
		private System.String dSN;
		/// <summary>	 
		/// 物流单号
		/// </summary>
		public System.String DSN
		{
			get{ return dSN; }
			set{ dSN= value; }
		}
		#endregion
		
		#region DSendDate
		private DateTime dSendDate;
		/// <summary>	 
		/// 发货时间
		/// </summary>
		public DateTime DSendDate
		{
			get{ return dSendDate; }
			set{ dSendDate= value; }
		}
		#endregion
		
		#region DStatus
		private Int16 dStatus;
		/// <summary>	 
		/// 物流状态
		/// </summary>
		public Int16 DStatus
		{
			get{ return dStatus; }
			set{ dStatus= value; }
		}
		#endregion

	}
}
